package com.gopay.common.constants.cust;

/**
 * 客户类型
 * Created by Light on 2016/11/7.
 */
public enum CustType {
    PERSON("1"),
    CORP("2"),
    ;

    public final String value;

    CustType(String value){
        this.value = value;
    }

    @Override
    public String toString(){
        return this.value;
    }

    public static String get(String str) {
        if(CustType.PERSON.value.equals(str)){
            return "个人";
        } else if(CustType.CORP.value.equals(str)){
            return "企业";
        }
        return "";
    }
}
